<template>
	<!-- 我的收藏 -->
	<view class="bigbox">
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		<u-empty text="暂无工作" marginTop="100" v-if="!data.length"></u-empty>
		<view class="" v-for="(item,index) in data" :key="index">
			<blueJobList :data="item" />
		</view>
	</view>
</template>

<script>
	import blueJobList from '@/components/blueJobList.vue'
	export default {
		components: {
			blueJobList
		},
		data(){
			return {
				list: [{
					name: '猎聘申请'
				},{
					name: '实习申请'
				}, {
					name: '蓝领申请'
				}],
				current: 0,
				showList:'jobList',
				type:1,
				data:[]
			}
		},
		onShow(){
			this.collectionList()
		},
		methods:{
			collectionList(){
				this.$api.myCollection({type:this.type}).then(res => {
					console.log(res)
					this.data = res.data
				})
			},
			change(index) {
				this.current = index;
				this.type = this.current + 1
				this.collectionList()
			}
		}
	}
</script>

<style>
</style>
